﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Controller : MonoBehaviour 
{
    public static Controller instance;
    public Controller()
    {
        instance = this;
    }

    public UnityEngine.UI.Button JumpButton;
    public UnityEngine.UI.Button PutItemButton;

    public Action JumpEvent;
    public Action PutItemEvent;

    // Use this for initialization



    void Start () 
    {
        JumpButton.onClick.AddListener(Jump);
        PutItemButton.onClick.AddListener(PutItem);		
    }
	
	// Update is called once per frame
	void Update () 
    {
		
	}

    void PutItem()
    {
        PutItemEvent();
    }

    void Jump()
    {
        JumpEvent();
    }
}
